package cn.iocoder.yudao.module.system.wechat_card.dto.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class BatchGetOrderDTO implements Serializable {

    @Schema(description = "查询的时间起点，十位时间戳（utc+8）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "查询的时间起点不能为空")
    private Long begin_time;

    @Schema(description = "查询的时间终点，十位时间戳（utc+8）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "查询的时间终点不能为空")
    private Long end_time;

    @Schema(description = "填\"ASC\" / \"DESC\"，表示对订单创建时间进行“升 / 降”排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private String sort_type;

    @Schema(description = "查询的订单偏移量，如填写100则表示从第100个订单开始拉取", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "查询的订单偏移量不能为空")
    private Integer offset;

    @Schema(description = "查询订单的数量，如offset填写100，count填写10，则表示查询第100个到第110个订单", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "查询订单的数量不能为空")
    private Integer count;

}
